import { handleActions } from 'redux-actions';
import immutable from 'seamless-immutable';

const INITIAL_STATE = immutable({
	pageSize: 10,
	end: false,
	list: [],
	info: {},
	comments: [],
	commentPageNum: 0,
	commentEnd: false,
})

export default handleActions({
  'post/fetchPostSuccess': (state, action) => state.merge(action.payload)
}, INITIAL_STATE);

